package xml;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**xml配置*/
public class AppService {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("provider.xml");
        context.start();
        System.in.read();//按任意键退出
    }
}
